import request from '@/utils/request'
export const FindAllProductSpec = () => {
  return request({
    url: `/admin/product/productSpec/findAll`,
    method: 'get',
  })
}
// 查询商品规格列表
export const GetProductSpecPage = (pageNum, pageSize) => {
  return request({
    url: `/admin/product/productSpec/page/${pageNum}/${pageSize}`,
    method: 'get',
  })
}
//新增
export const SaveProductSpec = data => {
  return request({
    url: `/admin/product/productSpec/save`,
    method: 'POST',
    data,
  })
}
//删除
export const DeleteProductSpecById = id => {
  return request({
    url: `/admin/product/productSpec/${id}`,
    method: 'DELETE',
  })
}
//根据id查询
export const GetProductSpecById = id => {
  return request({
    url: `/admin/product/productSpec/${id}`,
    method: 'GET',
  })
}
//更新
export const UpdateProductSpec = data => {
  return request({
    url: `/admin/product/productSpec/update`,
    method: 'PUT',
    data,
  })
}
